﻿var collegeApp = angular.module('collegeApp', ['ngRoute']);

collegeApp.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
    .when('/', {
        templateUrl: '/App/views/HomeView.html',
        controller: 'CollegeController'
    })
    .when('/Home', {
            templateUrl: '/App/views/HomeView.html',
            controller: 'CollegeController'
        })
    .when('/detail/:id', {
        templateUrl: '/App/views/DetailView.html',
        controller: 'CollegeController'
    })
    .otherwise({
        redirectTo: '/'
    });
}]);